.class Lcom/waiqin365/lightapp/deptmanager/m;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/waiqin365/lightapp/view/cn;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/deptmanager/m;->a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Ljava/util/List;)V
    .locals 5

    const/4 v1, 0x1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/m;->a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;Z)Z

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/a;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    if-eqz v0, :cond_0

    const-string/jumbo v4, "2"

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->a:Ljava/lang/String;

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v1

    :goto_0
    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/m;->a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setVisibility(I)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_1
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/d;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/d;->c:Z

    if-eqz v3, :cond_1

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/m;->a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setSelectedItems(Ljava/util/List;)V

    :goto_2
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/m;->a:Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;->a(Lcom/waiqin365/lightapp/deptmanager/DMAddEmpActivity;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setVisibility(I)V

    goto :goto_2

    :cond_4
    move v0, v2

    goto :goto_0
.end method
